]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Don't call a non-existent onComplete
authorRui Matos <tiagomatos@gmail.com>
Wed, 4 Mar 2015 17:58:14 +0000 (18:58 +0100)
committerRui Matos <tiagomatos@gmail.com>
Wed, 4 Mar 2015 18:01:41 +0000 (19:01 +0100)
Follow up to commit 6bb905895c932db51ff0314fecec765f2f703f31 .

https://bugzilla.gnome.org/show_bug.cgi?id=745627

js/ui/appDisplay.js

index e1ff13a17daed6562640b5c1869c4b42e653075b..f835946938b6502d4793dde3cabc79c561119c82 100644 (file)
@@ -544,7 +544,8 @@ const AllView = new Lang.Class({
         this._scrollView.reactive = false;
         let completionFunc = Lang.bind(this, function() {
             this._scrollView.reactive = true;
-            onComplete();
+            if (onComplete)
+                onComplete();
         });
 
         if (animationDirection == IconGrid.AnimationDirection.OUT &&